<template>
  <div class="waiting">
    <div>
      <div class="icon">
        <span></span>
      </div>
      <div class="text">{{title}}</div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'waiting',
    data () {
      return {
        title: ''
      }
    }
  }
</script>
<style>
  @keyframes waiting {
    from {
      transform: rotate(0deg)
    }
    to {
      transform: rotate(360deg)
    }
  }
</style>
<style lang="less" scoped>
  .waiting {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 103;
    >div{
      width: 60%;
      height:100px;
      background-color: rgba(0, 0, 0, .6);
      border-radius: 20px;
      line-height: 100px;
      font-size: 32px;
      display:flex;
      justify-content: center;
    }
    .icon {
      width: 45px;
      height: 100%;
      align-items: center;
      display: flex;
      span {
        width:45px;
        height: 45px;
        display: block;
        background: url("../../../../assets/icon-loading.png") bottom center no-repeat;
        background-size: 100%;
        animation: waiting 1.5s linear infinite;
      }
    }
    .text {
      margin-left: 20px;
      text-align: center;
      color: #FFFFFF;
      font-size: 32px; /* px */
    }
  }
</style>
